package com.eascs.web.demo.rest;

import org.springframework.mobile.device.Device;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.eascs.site.controller.BaseRestController;
import com.eascs.site.view.BaseRestResult;
import com.eascs.web.context.RequestContext;

@Controller
public class RequestContextRestController extends BaseRestController {

	@RequestMapping(value = "/demo/request-context/get-request-device", method = RequestMethod.GET)
	public BaseRestResult<String> getRequestDevice() {
		Device device = RequestContext.getRequestDevice();
		return BaseRestResult.buildRestResult("1");
	}
}
